package cn.kpi.dao.sys;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.kpi.common.persistence.MyBatisDao;
import cn.kpi.entity.sys.UserEntity;

@MyBatisDao
public interface UserDao {
 public UserEntity UserLogin()throws Exception;
 public int InsertEntity(UserEntity entity)throws Exception;
 public List<UserEntity> GetUserListByWhere(@Param("where") String where)throws Exception;
 public List<UserEntity> GetUserListTranByWhere(@Param("where") String where,@Param("year") String year,@Param("month") String month)throws Exception;
 public List<UserEntity> GetUserListWorkByWhere(@Param("where") String where,@Param("year") String year,@Param("month") String month)throws Exception;
 public List<UserEntity> GetUserListLimitByWhere(@Param("where") String where,@Param("beginrow")int beginrow,@Param("endrow")int endrow)throws Exception;
 public int GetUserListCountByWhere(@Param("where") String where)throws Exception;
 public int DeleteEntity(Long userid)throws Exception;
 public UserEntity GetUserById(Long userid)throws Exception;
 public int UpdateEntity(UserEntity entity)throws Exception;
 public int UpdateAllEntity(UserEntity entity)throws Exception;


 //todo:待实现
 public int UpdateEntityNullP(UserEntity entitys)throws Exception;
 public int InsertEntitys(List<UserEntity> entitys)throws Exception;
}
